<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org" lang="zh">

<head>
    <link rel="StyleSheet" href="../../static/css/jpetstore.css" type="text/css"
          media="screen" />

    <meta name="generator"
          content="HTML Tidy for Linux/x86 (vers 1st November 2002), see www.w3.org" />
    <title>JPetStore Demo</title>
    <meta content="text/html; charset=windows-1252"
          http-equiv="Content-Type" />
    <meta http-equiv="Cache-Control" content="max-age=0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="Pragma" content="no-cache" />
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
</head>

<body>

<div th:include="~{common/adminTop::adminTop}"></div>

<br><br><br><br><br>
<div style="text-align: center;font-size: 25px;top: 20px;">Orders</div>
<br>
<table align="center" bgcolor="white" style="border: #aaaaaa solid 1px;">
    <tr>
        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid;">orderId</th>
        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid;">userId</th>
        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid;">orderDate</th>
        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid;">check</th>
<!--        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid">email</th>-->
<!--        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid">phone</th>-->
<!--        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid">country</th>-->
<!--        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid">city</th>-->
<!--        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid">address1</th>-->
<!--        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid">address2</th>-->
<!--        <th style="border-right: #aaaaaa 1px solid;border-bottom: #aaaaaa 1px solid">zip</th>-->
    </tr>
    <div th:each="order:${orders}">
        <tr>
            <td th:text="${order.id}" style="border-right: #aaaaaa 1px solid;"></td>
            <td th:text="${order.userId}" style="border-right: #aaaaaa 1px solid;"></td>
            <td th:text="${order.orderDate}" style="border-right: #aaaaaa 1px solid;"></td>
            <td><a th:href="@{'/admin/orders/' + ${order.orderId}}">Enter</a></td>
<!--            <td th:text="${order.email}" style="border-right: #aaaaaa 1px solid;"></td>-->
<!--            <td th:text="${order.phone}" style="border-right: #aaaaaa 1px solid;"></td>-->
<!--            <td th:text="${order.country}" style="border-right: #aaaaaa 1px solid;"></td>-->
<!--            <td th:text="${order.city}" style="border-right: #aaaaaa 1px solid;"></td>-->
<!--            <td th:text="${order.addr1}" style="border-right: #aaaaaa 1px solid;"></td>-->
<!--            <td th:text="${order.addr2}" style="border-right: #aaaaaa 1px solid;"></td>-->
<!--            <td th:text="${order.zip}" style="border-right: #aaaaaa 1px solid;"></td>-->
        </tr>
    </div>

</table>
<br><br><br>

<div th:include="~{common/commonSide::footer}"></div>

</body>


</html>
<style>
    table{
        border-collapse: collapse
    }
    th,td{
        height: 30px;
        line-height: 30px;
        background-color: white;
        padding: 0 10px;
    }

</style>